﻿namespace ConsoleApp1.demo;

public class VarTest
{
    public static void TestReadLine()
    {
        const string s = "这是一个常量";
        Console.WriteLine(s);
        
        while (true)
        {
            var i = Convert.ToInt32(Console.ReadLine());
            Console.WriteLine("你写入的是数字："+i);
            if (i==0)
            {
                return;
            }
        }
        
    }
}